package com.bdqn.service;
import com.bdqn.mapper.StorageRecordMapper;
import com.bdqn.pojo.StorageRecord;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service("storageRecordService")
public class StorageRecordServiceImpl implements StorageRecordService {
    // 注入mapper层
    @Resource
    private StorageRecordMapper storageRecordMapper;

    @Override
    public int update(StorageRecord storageRecord) {
        return storageRecordMapper.update(storageRecord);
    }

    @Override
    public int add(StorageRecord storageRecord) {
        return storageRecordMapper.add(storageRecord);
    }

    @Override
    public int getCount() {
        return storageRecordMapper.getCount();
    }

    @Override
    public StorageRecord RecordList(Integer storageRecordId) {
        return storageRecordMapper.RecordList(storageRecordId);
    }

    @Override
    public List<StorageRecord> List(int pageIndex, int pageSize, String queryGoodsName, Integer querySupplierId, Integer queryPayStatus) {
        return storageRecordMapper.List(pageIndex,pageSize,queryGoodsName,querySupplierId,queryPayStatus);
    }
}
